//
//  TagsPickerTableViewController.h
//  StanfordUp
//
//  Created by Gongmyung on 8/17/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Tag.h"

@class StanfordEventsAppDelegate;

@protocol TagsPickerDelegate <NSObject>
@required
- (void)setTags:(NSArray*)tags tagSet:(NSMutableSet*)tagSet;
- (UINavigationController *)navController;          // Return the navigation controller
@end

@interface TagsPickerTableViewController : UITableViewController {
    NSMutableArray *tags;
    NSMutableDictionary *selectedTags;
    NSManagedObjectContext *managedObjectContext;
    UITextField *myTextField;
    
    NSMutableSet *tagSet;
    
    id <TagsPickerDelegate>   delegate;   // weak ref
}

- (id)initWithStyle:(UITableViewStyle)style andTags:(NSMutableArray*)initialTags andContext:(NSManagedObjectContext*)moj;

@property (nonatomic, assign)  id <TagsPickerDelegate> delegate;

@end
